﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Altarboy
{
    /// <summary>
    /// Interaction logic for Config.xaml
    /// </summary>
    public partial class ConfigWindow : Window
    {
      
        public ConfigWindow()
        {
            initComponent(); 
            this.Width = 600;
            this.Height = 350;
        }

        public void initComponent()
        {         
          System.Windows.Controls.Button newBtn = new Button();
          newBtn.Content = "A New Button";
          newBtn.Click += new RoutedEventHandler(newBtn_Click);
          this.AddChild(newBtn);         
        }

      private void newBtn_Click(object sender, RoutedEventArgs e)
        {
          MessageBox.Show("New Button Clicked!", " I got pressed.");
        }
               
    }
}
